package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CallRelevance对象", description = "")
public class CallRelevance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "行程ID")
    private Long rideId;

    @ApiModelProperty(value = "是否是代叫单")
    private Boolean isSubstitute;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;

    @ApiModelProperty(value = "乘客ID")
    private Long customerId;

    @ApiModelProperty(value = "绑定ID，唯一标识一组绑定关系")
    private String subscriptionId;

    @ApiModelProperty(value = "主叫号码")
    private String callerNumber;

    @ApiModelProperty(value = "已申请到的X号码")
    private String relationNumber;

    @ApiModelProperty(value = "被叫号码")
    private String calleeNumber;

    @ApiModelProperty(value = "是否有效")
    private Boolean isEffective;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


    private Long simpleCallRideId;
}
